//
//  AppDelegate.m
//  talentview
//
//  Created by user on 14-3-13.
//  Copyright (c) 2014年 user. All rights reserved.
//

#import "AppDelegate.h"
#import "RootController.h"
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [self initRootViewController];      //初始化UI相关的代码 (UI相关的初始化需要放在这个步骤后面)
    return YES;
}
							
- (void)applicationWillResignActive:(UIApplication *)application
{
  
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{

}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    
}

- (void)applicationWillTerminate:(UIApplication *)application
{

}
#pragma mark - 初始化界面
- (void)initRootViewController
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    [self.window makeKeyAndVisible];
    
    self.rootController = [RootController controller:self.window];
}
@end
